package com.itheima.controller;

import com.itheima.domain.Student;
import com.itheima.service.StudentService;
import org.w3c.dom.ls.LSOutput;

import java.util.ArrayList;
import java.util.Scanner;

/*
学生用户交互类
增
删
改
查

键盘录入和 输出语句
调用 service
 */
public class StudentController extends BaseStudentController {

    //ctrl+alt+m
    @Override
    public Student luruXinxi(String sid) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Student student = new Student();
        student.setSid(sid);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        //封装数据
        return student;
    }
}
